public class Solution2249 {
    public int countLatticePoints(int[][] circles) {
        int ans=0;
        for (int i=0;i<=200;i++){
            for (int j=0;j<=200;j++){
                boolean flag=false;
                for (int[] circle : circles) {
                    if ((i-circle[0])*(i-circle[0])+(j-circle[1])*(j-circle[1])<=circle[2]*circle[2]){
                        flag=true;
                        break;
                    }
                }
                if (flag){
                    ans++;
                }
            }
        }
        return ans;
    }

    public static void main(String[] args) {
        System.out.println(new Solution2249().countLatticePoints(new int[][]{{2,2,1}}));
    }
}
